import 'package:plugin_platform_interface/plugin_platform_interface.dart';

import 'pang_rowth_plugin_method_channel.dart';

abstract class PangRowthPluginPlatform extends PlatformInterface {
  /// Constructs a PangRowthPluginPlatform.
  PangRowthPluginPlatform() : super(token: _token);

  static final Object _token = Object();

  static PangRowthPluginPlatform _instance = MethodChannelPangRowthPlugin();

  /// The default instance of [PangRowthPluginPlatform] to use.
  ///
  /// Defaults to [MethodChannelPangRowthPlugin].
  static PangRowthPluginPlatform get instance => _instance;

  /// Platform-specific implementations should set this with their own
  /// platform-specific class that extends [PangRowthPluginPlatform] when
  /// they register themselves.
  static set instance(PangRowthPluginPlatform instance) {
    PlatformInterface.verifyToken(instance, _token);
    _instance = instance;
  }

  Future<String?> getPlatformVersion() {
    throw UnimplementedError('platformVersion() has not been implemented.');
  }

  /// 初始化方法
  Future<bool> init({
    String? djxJson,
    String? novJson,
  }) {
    throw UnimplementedError('init() has not been implemented.');
  }

  /// 加载DJX方法
  Future<bool> loadDJX() {
    throw UnimplementedError('loadDJX() has not been implemented.');
  }
}
